<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/4/27
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <a class="navbar-brand" href="#">Admin</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">${sessionScope.admin.adminid}</a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown1">
                        <a class="dropdown-item" href="page/admin/modifyPass.jsp">修改密码</a>
                    </div>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="adminServlet?action=queryPageUser">用户管理</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="adminServlet?action=queryPageEnterprise">商家管理</a>
                </li>

                <li class="nav-item active">
                    <a class="nav-link" href="adminServlet?action=logout">退出</a>
                </li>

            </ul>
        </div>
    </nav>
</div>

